//
//  WebSockerManager.h
//  VoiceLive
//
//  Created by 凸阿滨 on 2017/10/20.
//  Copyright © 2017年 WB. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <SocketRocket/SocketRocket.h>

//设置代理
@protocol getMessageDelegate<NSObject>

- (void)getMessageFormSocket:(NSDictionary *)message;

@end


@interface WebSockerManager : NSObject

@property(nonatomic,strong) id<getMessageDelegate>delegate;
@property(nonatomic,strong) SRWebSocket *webSocket;


//外部调用传入链接URL
- (void)WithIP:(NSString *)URLIP;
//外部控制打开webSocker(拿到接口传给的URL之后)
- (void)openSocket;
//外部调用控制关闭webSocket
- (void)closeSocker;
//心跳链接
- (void)SendPangMessage;
//外部聊天发送消息
- (void)sendTalkMessage:(NSString *)message;




@end
